<%@ page import="com.wsb.entry.SubmsUser" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/4
  Time: 16:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--jsp c标签  el 表达式--%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>主页</h1>
<h1>欢迎<%=session.getAttribute("userName")%>登陆成功</h1>
<center>
    <table border="1">
        <tr>
            <th>用户编码</th>
            <th>用户昵称</th>
            <th>用户密码</th>
        </tr>
       <% for(SmbmsUser smbmsUser:(List<SmbmsUser>)session.getAttribute("smbmsUserList")){ %>
        <tr>
            <td>
<%--                ${}--%>
                <%=smbmsUser.getUserCode()%></td>
            <td><%=smbmsUser.getUserName()%></td>
            <td><%=smbmsUser.getUserPassword()%></td>
        </tr>
        <%
            }
        %>

    </table>
</center>
</body>
</html>
